import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import AlertView from '../views/AlertView.vue'
import SettingsView from '../views/SettingsView.vue'
import NewAlertView from '../views/NewAlertView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/alert',
    name: 'alert',
    component: AlertView
  },
  {
    path: '/settings',
    name: 'settings',
    component: SettingsView
  },
  {
    path: '/new-alert',
    name: 'new-alert',
    component: NewAlertView
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
